import request from '@/utils/request'

export function skuIdLadder(pageNum , pageSize) {
  return request({
    url: '/coupon/skuLadder/skuIdLadder?pageNum=' + pageNum + '&pageSize=' + pageSize,
    method: 'get'
  })
}


export function skuLadderUpdateRule(data) {
  return request({
    url: '/coupon/skuLadder/skuLadderUpdateRule',
    method: 'post',
    data: data
  })
}


export function skuLadderInsert(data) {
  return request({
    url: '/coupon/skuLadder/skuLadderInsert',
    method: 'post',
    data: data
  })
}

export function getSkuLadder(id) {
  return request({
    url: '/coupon/skuLadder/getSkuLadder?id=' + id,
    method: 'get'
  })
}

export function skuLadderDelete(id) {
  return request({
    url: '/coupon/skuLadder/skuLadderDelete?id='+id,
    method: 'get'
  })
}
